<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 200px;
            height: 100px;
            margin: 20px auto;
        }
        
        .box1 {
            background-color: pink;
            transition: all 4s;
        }
        
        .box2 {
            background-color: blue;
            transition: all 4s;
        }
        
        .box3 {
            background-color: brown;
            transition: all 4s;
            transform-origin: 200px 100px;
        }
        
        .box4 {
            background-color: chartreuse;
            transition: all 1s;
        }
        
        .box5 {
            background-color: cornflowerblue;
            transition: all 1s;
        }
        
        .box1:hover {
            transform: rotateX(600deg);
        }
        
        .box2:hover {
            transform: rotateY(-360deg);
        }
        
        body:hover .box3 {
            /* transform: rotateZ(-500deg); */
            /* transform: rotate(-600deg); */
        }
        
        body:hover .box4 {
            transform: translateX(300px) rotateZ(90deg);
            /* transform: rotateZ(90deg); */
        }
        
        body:hover .box5 {
            transform: rotateZ(90deg) translateX(300px);
        }
    </style>
</head>

<body>
    <div class="box box1">x轴旋转</div>
    <div class="box box2">y轴的旋转</div>
    <div class="box box3">z轴的旋转</div>
    <div class="box box4">先写位移后写旋转</div>
    <div class="box box5">先写旋转后写位移</div>

</body>

</html>